Skip to content

Fix serve_book when not running in RStudio#637

Merged
yihui merged 1 commit intorstudio:masterfrom
jimhester:serve_book-non-rstudio
Sep 26, 2018
Merged

Fix serve_book when not running in RStudio#637
yihui merged 1 commit intorstudio:masterfrom
jimhester:serve_book-non-rstudio

Conversation

@jimhester
Copy link
Contributor

If the rstudioapi package is installed but serve_book is called outside
of RStudio getSourceEditorContext() would signal an error.

We now check if RStudio is available first, which fixes the issue.

@jimhester jimhester force-pushed the serve_book-non-rstudio branch 2 times, most recently from 1f5e69f to 5044435 Compare September 26, 2018 13:12
If the rstudioapi package is installed but serve_book is called outside
of RStudio `getSourceEditorContext()` would signal an error.

We now check if RStudio is available first, which fixes the issue.
Copy link
Collaborator

@yihui yihui left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@yihui yihui merged commit 44022a6 into rstudio:master Sep 26, 2018
@yihui yihui added this to the v0.8 milestone Sep 26, 2018
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 6, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants